import request from "@/util/request.js"

const getAll = ()=>{
    return request({
        url:"order/getAll"
    })
}

const getBought = ()=>{
    return request({
        url:"order/getBoughtOrder",
    })
}

const outOrder =(id)=>{
    return request({
        url:"order/outOrder",
        method:"post",
        params:{id}
    })
}

export default {
    getBought,
    outOrder,
    getAll
}